<template>
    <div>
        <a-table :columns="columns" :data-source="loaddata" bordered :pagination="false">
            <span slot="sort" slot-scope="text, record, index">{{ index + 1 }}</span>
            <span slot="meetingNames" slot-scope="text, record">
                <a class="ml20" type="primary" @click="signInVsible = true;id=record.id">点击查看参会者</a></span
            >
        </a-table>
        <seeSign
            :visible="signInVsible"
            :id="id"
            @cancel="signInVsible = false"
            @confirm="signInVsible = false"
        ></seeSign>
    </div>
</template>

<script>
import { STable } from '@/components'
import seeSign from '@/components/seeSign'
export default {
    name:'a'+Date.now(),    components: {
        STable,
        seeSign
    },
    name: 'tableTemplate',
    props: {
        columns: {
            type: Array,
            default() {
                return []
            },
        },
        loaddata: {
            type: Array,
            default() {
                return []
            },
        },
    },
    data() {
        return {
            id:'',
            signInVsible:false
        }
    },
}
</script>